package viber_sieve

import (
	"github.com/google/wire"
	"sieve_admin_server_userpass/app/api/sieve"
	"sieve_admin_server_userpass/app/api/util"
	"sieve_admin_server_userpass/app/server"
)

var (
	_             util.API = (*SieveValidAPI)(nil)
	SieveValidSet          = wire.NewSet(wire.Struct(new(SieveValidAPI), "*"))
)

type SieveValidAPI struct {
	util.EmptyAPI
	*sieve.SieveValidAPI
}

func (a *SieveValidAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "valid",
			Title: "Viber筛有效", Perms: []*server.Perm{
				{Name: "query", Title: "查询"},
				{Name: "add", Title: "新增"},
				{Name: "download", Title: "下载"},
				{Name: "export", Title: "导出(表数据)"},
			},
			Order: 8,
		},
	}
}
